// components/navHeader.js
Component({
  /**
   * Component properties
   */
  properties: {
    title:String,
    iconUrl:String,
    hasIcon:Boolean,
    color:String
  },

  /**
   * Component initial data
   */
  data: {
    },

  /**
   * Component methods
   */
  methods: {

  },
  lifetimes:{
    ready(){
      var systemInfo;
      wx.getSystemInfo({//get the statusbarheight
        success: (result) => {
          systemInfo=result;
          this.setData({
            statusBarHeight:systemInfo.statusBarHeight
          })
        },
      })
    }
  }
})
